﻿#ifndef RECORDOFCHARGE_H
#define RECORDOFCHARGE_H

#include <QWidget>
#include <QTableWidget>
#include "Global.h"
#include <QTimer>

namespace Ui {
class RecordOfCharge;
}

class RecordOfCharge : public QWidget
{
    Q_OBJECT
    
public:
    QLabel* time;
    QLabel* signal;
    QTableWidget tabWidgetChargingRecord;
    QSqlQueryModel* ROC_accountModel;
    int m_recordAccount;
    int Fitrating;//筛选状态 0 为非筛选 1 为筛选状态
    QString m_overReason;
    explicit RecordOfCharge(QWidget *parent = 0);
    ~RecordOfCharge();
public slots:
    void FitrateDataShow(int FiterFlag, QString serialnum, QString StartTime, QString EndTime);

private slots:

    void on_buttonFirst_clicked();
    void on_buttonPrev_clicked();
    void on_buttonNext_clicked();
    void on_buttonSelect_clicked();
    void on_buttonBack_clicked();
    void ChargeRecordShow(int current);
private:
    void onDeviceStopReason(int n_stopReason, int stopReason_detail);
    void onAccountCuttentIndex(int index);
    QDataWidgetMapper* ROC_accountMapper;
    Ui::RecordOfCharge *ui;
};

#endif // RECORDOFCHARGE_H
